package com.kitty.game.fight.artifact.passive;

import com.kitty.game.equip.model.RoleEquip;
import com.kitty.game.fight.bean.Fight;
import com.kitty.game.fight.bean.FightObject;
import com.kitty.common.utils.SpringUtils;

//九龙
public class CoverArtifactEffect extends ArtifactEffect {

    @Override
    public short getEffectId() {
        return 8007;
    }

    @Override
    public ArtifactType getType() {
        return ArtifactType.COVER;
    }

    @Override
    public Integer trigger(Fight fight, FightObject member, Object... params) {
        if (!checkBaseCondition(fight, member)) {
            return 0;
        }
        RoleEquip roleEquip = SpringUtils.getEquipService().getRoleEquipByPos(member.getRole(), (short) 9);
        int level = roleEquip.queryLevel();
        // 法宝等级*4
        return level * 4 * 360;
    }
}
